home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 12 / 012.d81 / q & a < prev    next >
Text File  |  2022-08-26  |  2KB  |  117 lines

  1.  
  2.        QUESTIONS AND ANSWERS
  3.  
  4.  
  5.  
  6.  
  7. From:  Carswell 31024
  8.  
  9.  
  10.  
  11.   Peeks and Pokes Part 22 and 23 on
  12.  
  13. Issue #10 of LOADSTAR outlines how to
  14.  
  15. use a basic program to scroll left.
  16.  
  17. Every time I tried to use this program
  18.  
  19. with mine, the program crashes. I have
  20.  
  21. been unable to figure out why.  Any
  22.  
  23. suggestions? I was successful in using
  24.  
  25. the M/L program as you described and
  26.  
  27. it worked fine as long as I loaded
  28.  
  29. "SCROLL.L/R" from your disk.   When
  30.  
  31. saving "SCROLL.L/R" to my disk, it
  32.  
  33. would not work.  What instructions do
  34.  
  35. I need to save "SCROLL.L/R" to my
  36.  
  37. disk?
  38.  
  39.  
  40.  
  41. >SCROLL.L/R is a machine-language
  42.  routine.  It is not as easy to save
  43.  a ML file as it is to save a BASIC
  44.  program.  But, to help in the
  45.  process, here is a small BASIC
  46.  routine which should do the job.  To
  47.  use this routine, you need to know
  48.  the starting and ending addresses (or
  49.  a close approximation--it is better
  50.  to guess too big than too small).
  51.  First LOAD the ML file you want to
  52.  save onto another disk.  Do this with
  53.  the common LOAD"name",8,1.  After
  54.  this, type NEW.  Then LOAD and RUN
  55.  this program with just the ',8'
  56.  format.  Then remove your disk and
  57.  insert the disk you want the ML
  58.  routine saved on to (make sure it is
  59.  formatted).  The program will ask
  60.  you what to call your new ML file.
  61.  You may call it anything you want.
  62.  
  63.  Here is the actual program.  Make
  64.  sure you type it in correctly.
  65.  
  66.  
  67.  10 INPUT"What file name  ";N$
  68.  20 N$=N$+",p"
  69.  30 INPUT"Starting address";SA
  70.  40 INPUT"Ending address  ";EA
  71.  45 OPEN2,8,2,N$
  72.  50 POKE254,INT(SA/256)
  73.  60 POKE253,SA-256*PEEK(254)
  74.  70 POKE780,253
  75.  80 POKE782,INT(EA/256)
  76.  90 POKE781,EA-256*PEEK(782)
  77. 100 SYS 65496:CLOSE2
  78. 110 PRINT"FINISHED!!"
  79. 120 END
  80.  
  81.  
  82.  By the way, the starting address of
  83.  SCROLL.L/R is 49152.  The ending
  84.  address is approximatly 49664.
  85.  
  86.  
  87. - - - - - - - - - - - - - - - - - - -
  88.  
  89.  
  90. From:  Carswell 31024
  91.  
  92.  
  93.   Your up and down bounce at the end
  94.  
  95. of each feature is fascinating.  Do
  96.  
  97. you care to tell how it's done?
  98.  
  99.  
  100.  
  101. >Well, the secret is behind what is
  102.  called the raster.  Without getting
  103.  into the messy details, let's say
  104.  that the raster is the technical term
  105.  for your video output.  Now, here is
  106.  how you do our little 'bounce'.
  107.  
  108.  
  109. 10 W=53265:U=128
  110. 20 FOR I = 27 to 31:WAIT W,U:POKE W,I:
  111.    NEXT I
  112. 30 FOR I = 31 to 27 STEP -1:WAIT W,U:
  113.    POKE W,U:NEXT I
  114.  
  115.  
  116. ---------< end of article >-----------
  117.